package model.promo;
// Generated Feb 5, 2013 11:50:02 PM by Hibernate Tools 3.2.1.GA


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * MstPromo generated by hbm2java
 */
@Entity
@Table(name="mst_promo", schema="promo")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Promo  implements java.io.Serializable {

     private int id;
     private Date startDate;
     private Date endDate;
     private String jenis;
     private String whois;
     private String promoName;
     private String notes;
     private Boolean aktive;
     

    public Promo() {
       this.startDate = new Date();
       this.endDate = new Date();
       this.aktive = false;
    }
	
    public Promo(int id) {
        this.id = id;
    }
       
    @Id 
    @SequenceGenerator(name="promo_seq", sequenceName="promo.mst_promo_id_seq", allocationSize=1)
    @GeneratedValue(strategy= GenerationType.SEQUENCE, generator="promo_seq")
    @Column(name="id", unique=true, nullable=false)
    public int getId() {
        return this.id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="start_date", length=13)
    public Date getStartDate() {
        return this.startDate;
    }
    
    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="end_date", length=13)
    public Date getEndDate() {
        return this.endDate;
    }
    
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }
    
    @Column(name="jenis", length=3)
    public String getJenis() {
        return this.jenis;
    }
    
    public void setJenis(String jenis) {
        this.jenis = jenis;
    }
    
    @Column(name="whois", length=3)
    public String getWhois() {
        return this.whois;
    }
    
    public void setWhois(String whois) {
        this.whois = whois;
    }

    @Column(name="promo_name", length=50)
    public String getPromoName() {
        return promoName;
    }

    public void setPromoName(String promoName) {
        this.promoName = promoName;
    }

    @Column(name="notes", length=200)
    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    @Column(name="aktive")
    public Boolean getAktive() {
        return aktive;
    }

    public void setAktive(Boolean aktive) {
        this.aktive = aktive;
    }

    

}


